-
Notifications
You must be signed in to change notification settings - Fork 0
feat: #13 filter facets #65
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description now records the group’s decision as AND within genres.
One mismatch remains: issue #13 still says facet counts should exclude their own filter dimension, while this implementation keeps selected genres in the genre counts and shows their intersections. Please update issue #13 to match the agreed behavior: genre counts use the active genre selections, while decade counts exclude selected decades but keep the other active filters. Please make the acceptance criteria explicit so they match the implementation.
|
Review feedback addressed:
Ready for another review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran the full test suite locally against PostgreSQL, and all tests passed, including the integration tests. The filtering and facet counts also behaved as expected during manual testing.
I've left a comment about selected filters disappearing when they're omitted from the API response. I think this should be fixed before merging.
Could we also add a few PostgreSQL integration tests covering the AND/OR filter combinations and facet counts?
One small documentation update: docs/architecture.md currently says the URL contains the search term, genres and sort, but it now also supports decades and the reviewed filter. Could we update that description to reflect the new functionality?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating issue #13. I rechecked the facet behavior against the clarified criteria: genre filters use AND, and genre facet counts use the active filters. Decade facet counts exclude selected decades while keeping the other active filters. This resolves my requested change. CI is green. Approving.
|
Review feedback addressed:
Ready for another review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retested PR #65 locally after the latest changes. All 88 backend tests passed, including the PostgreSQL integration tests, and manual testing of the filters, sorting, pagination and URL behavior looks good.
The updated filter dropdown works well, and the previous review feedback appears to be addressed. Looks good to me!
Closes #13
Summary
genres,decades,reviewed=1), so reload, back/forward and shared links work. Changing a filter always starts on the first page, because the cursor is never part of the search state.hasReviewsfilter toAlbumSearchInputand areviewedCountfield toAlbumConnection, both computed in SQL.Decisions from the issue
Verification
reviewed, the SQL filter forhasReviews)